package com.example.userinfoapi.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterRequest {
    @NotBlank(message = "用户名不能空")
    @Length(max = 20, message = "用户名最多20个字符")
    private String userName;
    @NotBlank(message = "密码不能空")
    @Length(max = 20, message = "密码最多20个字符")
    private String passWord;
    @NotBlank(message = "githubUrl不能空")
    @Length(max = 64, message = "githubUrl最多64个字符")
    private String githubUrl;
    @NotBlank(message = "邮箱不能空")
    @Length(max = 20, message = "邮箱最多20个字符")
    private String email;
}
